//
//  FKGoodsShopAddressHeader.m
//  WanTao
//
//  Created by Macbook Pro on 2019/3/18.
//  Copyright © 2019 Macbook Pro. All rights reserved.
//

#import "FKGoodsShopAddressHeader.h"

@interface FKGoodsShopAddressHeader ()

@property (nonatomic, weak) UILabel *titleLabel;
@property (nonatomic, weak) UIButton *arrowBtn;


@end

@implementation FKGoodsShopAddressHeader

- (void)setupSubviews
{
    [super setupSubviews];
    self.contentView.backgroundColor = [UIColor whiteColor];
    
    UIView *separator = [[UIView alloc] init];
    [self.contentView addSubview:separator];
    separator.backgroundColor = [UIColor groupTableViewBackgroundColor];
    
    UILabel *titleLabel = [UILabel fk_labelWithFont:fk_adjustFont(14) textColor:fkColor333333 text:@"店铺信息："];
    [self.contentView addSubview:titleLabel];
    self.titleLabel = titleLabel;
    titleLabel.numberOfLines = 0;
    
    UIButton *arrowBtn = [UIButton fk_btnWithTarget:self action:@selector(arrowBtnClicked:) img:[UIImage imageNamed:@"arrow_down"]];
    [self.contentView addSubview:arrowBtn];
    self.arrowBtn = arrowBtn;
    
    // 设置frame
    [separator mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.right.offset(0);
        make.height.offset(fk_adjustW(10));
    }];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(12);
        make.centerY.offset(0);
    }];
    [arrowBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.offset(60);
        make.height.offset(fk_adjustW(36));
        make.right.centerY.offset(0);
    }];
}

- (void)arrowBtnClicked:(UIButton *)btn
{
    
}

//- (void)setData:(id)data
//{
//    [super setData:data];
//
//
//}

@end
